
int *binheapDelete(int **binheap, int *size) {
    int *packet = binheap[0];
    binheap[0] = binheap[*szie - 1];
    *size--; // should be (*size)-- ;
    heapify(binheap, *size, 0);
    return packet;
}
